
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
git-repo-name
Advanced tools
Get the repository name from the git remote origin URL.
Install with npm
$ npm i git-repo-name --save
var repoName = require('git-repo-name');
By default process.cwd()
is used, but you can alternatively specify a different directory as the first argument.
async
repoName(function(err, name) {
//=> 'git-repo-name'
});
sync
repoName.sync();
//=> 'git-repo-name'
Optionally specify the directory to use.
async
repoName('foo', function(err, name) {
//=> 'repo-foo-name'
});
sync
repoName.sync('foo');
//=> 'repo-foo-name'
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on November 27, 2015.
FAQs
Get the repository name from the git remote origin URL.
The npm package git-repo-name receives a total of 78,391 weekly downloads. As such, git-repo-name popularity was classified as popular.
We found that git-repo-name demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.